﻿using System;
using System.Linq.Expressions;
using NHibernate.Expression.Extensions.Helpers;
using NHibernate.Criterion;

namespace NHibernate.Expression.Extensions {
	public static class PropertyEx<T> {
		public static Property ForName<R>(Expression<Func<R, T>> property) {
			return Property.ForName(property.MemberName());
		}
	}
}